/*! * (c) Copyright Adnami ApS, all rights reserved. * * Package: @adnami.io/adsm.macro.302b8d5f-17f3-4ae1-bbb1-35eba91de1ad.js * Version: 1.0.23 * Date: 2024-03-19T13:16:12.850Z * */!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){var o=n(1),r=n(4),a=n(15),i=n(16),l=n(17),s=n(18),d={uuid:s.uuid,certifications:s.certifications,default:function(){var t=window.adsmtag=window.adsmtag||{},e=[];e.push((function(){r.run(),o.run()})),t.cmd=e.concat(t.cmd||[]),i.load(l.config.rmbRef)}};a.bootstrap(d)},function(t,e,n){var o=n(2),r=n(3);t.exports={run:function(){var t=window.adsmtag=window.adsmtag||{};t.mnemonics=t.mnemonics||[],-1===t.mnemonics.indexOf("css")&&(o.create(r,"adsmtag-css"),t.mnemonics.push("css"))}}},function(t,e){function n(t,e,n,o){try{"insertRule"in t?t.insertRule(e+"{"+n+"}",o):"addRule"in t&&t.addRule(e,n,o)}catch(t){}}t.exports={create:function(t,e){var o=window.document.createElement("style");o.styleSheet&&o.appendChild(window.document.createTextNode("")),(window.document.head||window.document.getElementsByTagName("head")[0]).appendChild(o);for(var r=o.sheet||o.styleSheet,a=r.cssRules||r.rules,i=0;ip",styles:"margin-bottom:unset !important;"},{selector:'.adnm-topscroll:not(.adnm-layout4) .adnm-topscroll-parent [id*="adsm-iframe-"]',styles:"position:absolute !important;width:50px !important;height:50px !important;"},{selector:'.adnm-topscroll:not(.adnm-layout4) [id*="adsm-iframe-"]',styles:"overflow-clip-margin:inherit !important;overflow:inherit !important;display:block !important;transform:unset !important;transition:unset !important;"},{selector:".adnm-topscroll:not(.adnm-layout4) #gpt-leaderboard-1",styles:"min-height:0 !important;padding:unset !important;display:block !important;"},{selector:".adnm-topscroll:not(.adnm-layout4) #gpt-leaderboard-1::before",styles:"content:unset !important;"},{selector:".adnm-topscroll:not(.adnm-layout4).adnm-topscroll-fixed.menuOff #nwMenu",styles:"top:5px !important;"},{selector:".adnm-topscroll:not(.adnm-topscroll-fixed, .adnm-layout4) #primaryNav",styles:"position:relative !important;"},{selector:".adnm-topscroll:not(.adnm-layout4).adnm-topscroll-fixed #primaryNav,.adnm-topscroll:not(.adnm-layout4) #mobileNav:not(amp-sidebar)",styles:"position:fixed !important;z-index:12 !important;top:0 !important;"},{selector:".adnm-topscroll:not(.adnm-layout4).adnm-topscroll-fixed header#masthead",styles:"margin-top:60px !important;"},{selector:".adnm-topscroll:not(.adnm-layout4) #page>footer",styles:"margin-bottom:-20px !important;"},{selector:".adnm-topscroll:not(.adnm-topscroll-fixed, .adnm-layout4) .skyscraperWrapper",styles:"top:calc(80vh + 270px) !important;"},{selector:".adnm-topscroll:not(.adnm-layout4) .skyscraperWrapper.singleSkyskraperWrap",styles:"top:100px !important;"},{selector:".adnm-topscroll-mobile:not(.adnm-topscroll-fixed) .adnm-html-topscroll-frame-wrapper",styles:"top:unset !important;"},{selector:".adnm-topscroll-mobile:not(.adnm-topscroll-fixed) #nwMenu",styles:"display:none !important;"},{selector:".adnm-topscroll-mobile:not(.adnm-topscroll-fixed) #wrapper",styles:"margin-top:unset !important;margin-top:50px !important;"},{selector:".adnm-topscroll-mobile:not(.adnm-topscroll-fixed)",styles:"padding-top:unset !important;"},{selector:".adnm-layout1.adnm-topscroll:not(.adnm-layout1.adnm-topscroll-fixed) .adContainer.dfp.noneScrollableArticleAds.skyOne.initiated",styles:"position:relative !important;top:80vh !important;"},{selector:".adnm-layout1.adnm-topscroll:not(.adnm-layout1.adnm-topscroll-fixed) .adContainer.dfp.noneScrollableArticleAds.skyOne.initiated",styles:"position:relative !important;top:80vh !important;"},{selector:".adnm-layout2.adnm-topscroll #ipsLayout_header",styles:"top:50px !important;"},{selector:".adnm-layout2.adnm-topscroll:not(.adnm-layout2.adnm-topscroll-fixed) body",styles:"width:unset !important;"},{selector:".adnm-layout2.adnm-topscroll:not(.adnm-layout2.adnm-topscroll-fixed) .idgmsg__box.idgmsg__box--in.idgmsg--idg-academy",styles:"display:none !important;"},{selector:".adnm-layout2.adnm-topscroll:not(.adnm-layout2.adnm-topscroll-fixed) #divNavigationContainerFlyOut",styles:"top:0px !important;"},{selector:".adnm-layout2.adnm-topscroll:not(.adnm-layout2.adnm-topscroll-fixed) #menu-button__close",styles:"position:fixed !important;"},{selector:".adnm-layout2.adnm-topscroll:not(.adnm-layout2.adnm-topscroll-fixed) .skyscraperWrapper.singleSkyskraperWrap",styles:"position:absolute !important;top:85vh !important;"},{selector:".adnm-layout2.adnm-topscroll .skyscraperWrapper.singleSkyskraperWrap",styles:"transition:unset !important;"},{selector:".adnm-layout2.adnm-topscroll-fixed .idgmsg__box.idgmsg__box--in.idgmsg--idg-academy",styles:"transition:unset !important;"},{selector:".adnm-layout2.adnm-layout2.adnm-topscroll:not(.adnm-layout2.adnm-topscroll-fixed) .i-header,.adnm-layout2.adnm-layout2.adnm-topscroll:not(.adnm-layout2.adnm-topscroll-fixed) .sc-bdVaJa.iPmCZP",styles:"top:unset !important;"},{selector:".adnm-layout2.adnm-layout2.adnm-topscroll:not(.adnm-layout2.adnm-topscroll-fixed) .ipsApp.ipsApp_front.ipsClearfix.ipsJS_has.ipsApp_noTouch",styles:"margin-top:unset !important;"},{selector:".adnm-layout3.adnm-topscroll",styles:"overflow-x:hidden;"},{selector:".adnm-layout3.adnm-topscroll body.mobileNav--is-open .adnm-html-topscroll-frame-wrapper",styles:"display:none !important;"},{selector:".adnm-layout3.adnm-topscroll:not(.adnm-topscroll-fixed) body.mobileNav--is-open .adnm-html-topscroll-frame-wrapper>*",styles:"height:0 !important;"},{selector:".adnm-layout3.adnm-topscroll-mobile body.mobileNav--is-open #mobileNav",styles:"z-index:10 !important;"},{selector:".adnm-layout3.adnm-topscroll-mobile body",styles:"padding-top:0 !important;"},{selector:".adnm-layout3.adnm-topscroll-mobile #mobileNav",styles:"z-index:12 !important;"},{selector:".adnm-html-interscroll .adnm-interscroll-parent,.adnm-html-interscroll-desktop .adnm-interscroll-parent,.adnm-html-interscroll-doublescreen-desktop .adnm-interscroll-parent",styles:"will-change:unset !important;transform:unset !important;"},{selector:".adnm-layout3.adnm-html-interscroll #primaryNav",styles:"z-index:11 !important;"},{selector:".adnm-layout3.adnm-html-interscroll .adnm-html-interscroll-frame-wrapper iframe",styles:"top:60px !important;"},{selector:".adnm-html-interscroll .adnm-interscroll-parent",styles:"transform:unset !important;will-change:unset !important;"},{selector:".adnm-html-outstream .adnm-outstream-parent",styles:"margin:unset !important;"}]},function(t,e,n){var o=n(5);const r=n(13);t.exports={run:function(){var t=window.adsmtag=window.adsmtag||{};t.mnemonics=t.mnemonics||[],-1===t.mnemonics.indexOf("scripts")&&(r.run(),o.run(),t.mnemonics.push("scripts"))}}},function(t,e,n){var o=n(6).functions.cloneCert;var r=n(7),a=n(8),i=n(9),l=n(10);n(11),n(12);function s(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):!!t.attachEvent&&t.attachEvent("on"+e,n)}function d(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):!!t.attachEvent&&t.attachEvent("on"+e,n)}function c(){var t=document.querySelector(".adnm-topscroll-container-wrapper, .adnm-html-topscroll-frame-wrapper"),e=document.querySelector("html.adnm-topscroll");if(e){var n=t.getBoundingClientRect().bottom,o=t.getBoundingClientRect().top;n>0?e.classList.remove("adnm-topscroll-fixed"):e.classList.add("adnm-topscroll-fixed"),o>-300?e.classList.remove("adnm-topscroll-video-fixed"):e.classList.add("adnm-topscroll-video-fixed")}var r=document.querySelector(".adsm-skin-banner-parent"),a=document.querySelector("html.adsm-skin");a&&((o=r.getBoundingClientRect().top)>0?a.classList.remove("adsm-skin-fixed"):a.classList.add("adsm-skin-fixed"))}t.exports={run:function(){window.adsm=window.adsm||{},window.adsm.certifications=window.adsm.certifications||[],window.adsm.certifications["adnami-canvas-desktop-topscroll"]={cert:{element:"html",showTopbar:!0,adText:"Annons",continueText:""},onDestroy:function(){r.removeParentClass(),d(window,"scroll",c),d(window,"resize",c),d(window,"load",c)},onLoaded:function(){document.querySelector(".adnm-topscroll-text-box .adnm-topscroll-text:nth-child(2)").innerHTML="Fortsätt till hemsidan"},onInit:function(t){r.addParentClass(t,2,!0),s(window,"scroll",c),s(window,"resize",c),s(window,"load",c)}},window.adsm.certifications["adnami-canvas-mobile-topscroll"]=o("adnami-canvas-desktop-topscroll");let t=document.querySelector("[data-brand='nww']");window.adsm.certifications["adnami-canvas-mobile-midscroll"]={cert:{topOffset:t?0:41},onDestroy:function(){a.removeAutoHeightParents(),a.removeParentClass()},onLoaded:function(t){a.autoHeightParents(t)},onInit:function(t){a.addParentClass(t,2)}},window.adsm.certifications["adnami-midscroll-mobile-sticky"]=o("adnami-canvas-mobile-midscroll"),window.adsm.certifications["adnami-midscroll-desktop"]={cert:{},onDestroy:function(){a.removeAutoHeightParents(),a.removeParentClass()},onLoaded:function(t){a.autoHeightParents(t)},onInit:function(t){a.addParentClass(t,4,!0)}},window.adsm.certifications["adnami-midscroll-doublescreen-desktop"]={},window.adsm.certifications["adnami-midscroll-doublescreen-desktop"].onInit=window.adsm.certifications["adnami-midscroll-desktop"].onInit,window.adsm.certifications["adnami-midscroll-doublescreen-desktop"].onLoaded=window.adsm.certifications["adnami-midscroll-desktop"].onLoaded,window.adsm.certifications["adnami-midscroll-doublescreen-desktop"].onDestroy=window.adsm.certifications["adnami-midscroll-desktop"].onDestroy,window.adsm.certifications["adnami-midscroll-doublescreen-desktop"].cert={},window.adsm.certifications["adnami-canvas-desktop-fluidskin"]={cert:{element:"#page",content:"#primary",sticky:!0},onDestroy:function(){i.removeSideskinBannerResizeClass(),d(window,"scroll",c),d(window,"resize",c),d(window,"load",c)},onLoaded:function(t){i.initSideSkinBannerResizeGeneric(t,2)},onInit:function(){s(window,"scroll",c),s(window,"resize",c),s(window,"load",c)}},window.adsm.certifications["adnami-canvas-seamless-skin"]=o("adnami-canvas-desktop-fluidskin"),window.adsm.certifications["adnami-outstream-format"]={cert:{centered:!0,widthOverride:"640px"},onDestroy:function(){l.removeAutoWidthParents(),l.removeParentClass()},onLoaded:function(t){l.autoWidthParents(t)},onInit:function(t){l.addParentClass(t,2)}},window.adsm.certifications["adnami-outstream-mobile"]={cert:{centered:!0},onDestroy:function(){l.removeAutoWidthParents(),l.removeParentClass()},onLoaded:function(t){l.autoWidthParents(t)},onInit:function(t){l.addParentClass(t,2)}}}}},function(t,e){var n={addEvent:function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):!!t.attachEvent&&t.attachEvent("on"+e,n)},cloneCert:function(t){var e=JSON.parse(JSON.stringify(window.adsm.certifications[t]));return e.onInit=window.adsm.certifications[t].onInit,e.onDestroy=window.adsm.certifications[t].onDestroy,e.onLoaded=window.adsm.certifications[t].onLoaded,e}},o=function(){var t,e,n,o,r=document.getElementsByTagName("html")[0],a="10px",i="1500px",l="absolute",s="fixed";function d(){return r.getBoundingClientRect().top}function c(t,e,n){t&&(t.style.marginTop=e,t.style.position=n)}return{defineSkyWrappers:function(n,o){t=n,e=o},defineSkyArray:function(t){n=t},adjustSkys:function(){null!==document.querySelector("html.adsm-skin")||o?d()<-parseInt(i)?(c(t,a,s),c(e,a,s)):(c(t,i,l),c(e,i,l)):(c(t,a,s),c(e,a,s))},adjustSkycrapers:function(t,e){if(o)if(d()100&&null!==document.querySelector(".adnm-adwell iframe");var t}())t=e.firstChild,clearInterval(n),e.style.maxWidth=((i=a)?i.getBoundingClientRect().width:null)+"px",r();else if(o>1e4)return clearInterval(n),!1;var i}),100),o=0;function r(){var n=document.createElement("div");e&&t&&(e.insertBefore(n,t),n.classList.add("adnm-adwell-close-button"),n.innerHTML="✖",document.querySelector(".adnm-adwell-close-button").addEventListener("click",a))}function a(){e&&(e.classList.add("adnm-adwell-gone"),e.classList.remove("adnm-adwell-full"))}return{insertCloseButton:r,addEvent:function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):!!t.attachEvent&&t.attachEvent("on"+e,n)},adwellFullHeight:function(){e&&(e.classList.add("adnm-adwell-full"),setTimeout(a,7e3))}}}();t.exports={functions:n,adnamiSkyAdjuster:o,adnamiBottomBanner:r}},function(t,e){const n="adnm-topscroll-parent";function o(){document.querySelectorAll("."+n).forEach(t=>{t.classList.remove(n)})}let r=null;const a="adnm-topscroll-sky-selector";let i=null,l=[];function s(){if(!document.querySelector("html").classList.contains("adsm-skin"))for(let t=0;t0&&n){if(e[0].classList.contains(`${a}-${t}`)){const o=e[0].getBoundingClientRect().top,r=n.getBoundingClientRect().bottom;Math.abs(o-r-l[t].spacing)>1&&d()}if(l[t].restoreWhenUnder){n.getBoundingClientRect().bottom<0?e.forEach(e=>{e.classList.remove(`${a}-${t}`)}):e.forEach(e=>{e.classList.add(`${a}-${t}`)})}}}}function d(){if(0===l.length)return;i.innerHTML="";let t="";for(let n=0;n{t.classList.add(`${a}-${n}`)});const s=o[0];let d=0,c=e(d,n);i.innerHTML=t+c;const m=window.scrollY+s.getBoundingClientRect().top,u=window.scrollY+r.getBoundingClientRect().top+r.offsetHeight;d=l[n].spacing+u-m,t+=e(d,n),i.innerHTML=t}function e(t,e){return`html.adnm-topscroll:not(.adsm-skin) .${a}-${e} { margin-top: 0px !important; position: ${l[e].cssPosition} !important; top: ${t}px !important; } `}}var c;function m(){var t=window.innerHeight;if(c){var e=document.querySelector(".adnm-html-topscroll-frame-wrapper"),n=document.querySelectorAll('html.adnm-topscroll .adnm-html-topscroll-frame-wrapper div[class^="adnm-html-topscroll"]'),o=t-c.offsetHeight,r=e.getBoundingClientRect().bottom-c.getBoundingClientRect().top,a=Math.floor(r+o)-1;e&&n&&(u(e,a),n.forEach(t=>{u(t,a)}))}}function u(t,e){t&&t.style&&(t.style.maxHeight=e+"px",t.style.height=e+"px")}let p;t.exports={alignSkys:function(t,e,n=null,o=20,r="absolute"){n||(n=".adnm-html-topscroll-frame-wrapper"),l.push({skySelectors:t,restoreWhenUnder:e,alignSelector:n,spacing:o,cssPosition:r}),d()},removeAlignSkys:function(){i.parentElement.removeChild(i),l=[];for(let t=0;t{e.classList.contains(`${a}-${t}`)&&e.classList.remove(`${a}-${t}`)})}window.removeEventListener("resize",d),window.removeEventListener("scroll",s)},initAlignSkys:function(){i=document.createElement("style"),document.head.appendChild(i),window.addEventListener("resize",d),window.addEventListener("scroll",s)},initAdjustHeightOfTopscroller:function(t){c=document.querySelector(t),m(),window.addEventListener("resize",m)},destroyAdjustHeightOfTopscroller:function(){window.removeEventListener("resize",m)},addParentClass:function(t,e,r=!1){if(!function(t,e){let o=null,a=t;for(;a.parent&&a.parent!==window;)a=a.parent;const i=document.querySelectorAll("iframe");for(let t=0;t-r?t.classList.remove(e):t.classList.add(e)}},autoFixViewability:function(t,e){r=document.createElement("style"),document.head.appendChild(r),r.innerHTML=".adnm-viewability-fix { overflow: unset !important; }",function(t){let n=null,o=t;for(;o.parent&&o.parent!==window;)o=o.parent;const r=document.querySelectorAll("iframe");for(let t=0;t{t.classList.remove("adnm-viewability-fix")}),r&&r.parentElement.removeChild(r)},addTopscrollSizeIndicatorClass:function(){const t=document.querySelector(".adnm-html-topscroll-frame-wrapper");if(t){const e=parseFloat(t.style.height)/window.innerHeight*100;if(e){p="adnm-topscroll-"+e;const t=document.querySelector("html");t&&p&&t.classList.add(p)}}},removeTopscrollSizeIndicatorClass:function(){const t=document.querySelector("html");t&&p&&(t.classList.remove(p),p="")},adunitSizeFailsafe:function(){const t=document.querySelector("iframe[id^='google_ads_iframe'][class^='adnm-']"),e=document.querySelector(".adnm-html-topscroll-frame-wrapper ");t.offsetWidth<30&&(t.style.width=e.offsetWidth+"px",t.style.marginLeft="-50vw")}}},function(t,e){const n="adnm-interscroll-parent";function o(){document.querySelectorAll("."+n).forEach(t=>{t.classList.remove(n)})}const r="adnm-interscroll-creative-parent";let a=null,i=null;let l=null,s=null,d=[];t.exports={addParentClass:function(t,e,r=!1){if(!function(t,e){let o=null,a=t;for(;a.parent&&a.parent!==window;)a=a.parent;const i=document.querySelectorAll("iframe");for(let t=0;t{t.classList.remove(r)}),a&&a.parentElement.removeChild(a)},initAddSkyFading:function(){l=document.createElement("style"),document.head.appendChild(l),s=document.createElement("style"),document.head.appendChild(s)},addSkyFading:function(t){if(d.push({skySelectors:t}),document.querySelectorAll(".adnm-html-interscroll-frame-wrapper").forEach(t=>{!function(t){if("IntersectionObserver"in window&&t){new IntersectionObserver((t,e)=>{t.forEach(t=>{if(0==t.isIntersecting){if(0===d.length)return;l.innerHTML="";for(let t=0;t{t.classList.remove("adnm-midscroll-sky-opacity")})}}else{if(0===d.length)return;l.innerHTML="";for(let t=0;t{t.classList.add("adnm-midscroll-sky-opacity"),l.innerHTML=`${'[class*="adnm-html-interscroll"]'} .${"adnm-midscroll-sky-opacity"} {opacity: 0 !important; } `})}}})},{rootMargin:"0px",threshold:.01}).observe(t)}}(t)}),0!==d.length){s.innerHTML="";for(let t=0;t{t.classList.add("adnm-midscroll-sky-transition"),s.innerHTML=`${'[class*="adnm-html-interscroll"]'} .${"adnm-midscroll-sky-transition"} { transition: opacity 0.5s ease 0s !important;} `})}}}}},function(t,e){const n="adsm-skin-parent";function o(){document.querySelectorAll("."+n).forEach(t=>{t.classList.remove(n)})}const r="adsm-skin-banner-parent";let a=null;function i(){if(a){const t=document.querySelector(window.adsm.certifications["adnami-canvas-desktop-fluidskin"].cert.content).offsetWidth||document.querySelector(window.adsm.certifications["adnami-canvas-seamless-skin"].cert.content).offsetWidth;a.innerHTML=`.adsm-skin .${r} {min-width: unset !important; max-width: unset !important; width: ${t}px !important; margin-left: auto !important; margin-right: auto !important; height: auto !important; max-height: unset !important;`}}const l="adnm-skin-sky-selector";let s=null,d=[];function c(){for(let t=0;t0&&n){if(e[0].classList.contains(`${l}-${t}`)){const o=e[0].getBoundingClientRect().top,r=n.getBoundingClientRect().bottom;Math.abs(o-r-d[t].spacing)>1&&m()}if(d[t].restoreWhenUnder){n.getBoundingClientRect().bottom{e.classList.remove(`${l}-${t}`)}):e.forEach(e=>{e.classList.add(`${l}-${t}`)})}}}}function m(){if(0===d.length)return;s.innerHTML="";let t="";for(let n=0;n{t.classList.add(`${l}-${n}`)});const a=o[0];let i=0,c=e(i,n);s.innerHTML=t+c;const m=window.scrollY+a.getBoundingClientRect().top,u=window.scrollY+r.getBoundingClientRect().top+r.offsetHeight;i=d[n].spacing+u-m,t+=e(i,n),s.innerHTML=t}function e(t,e){return`.adsm-skin .${l}-${e} { margin-top: 0px !important; position: ${d[e].cssPosition} !important; top: ${t}px !important; } `}}let u=[];function p(){let t=window.adsm&&window.adsm.pageSettings&&window.adsm.pageSettings.skinMaxScrollDepth||void 0;u.topOffset=null!==u.topOffset?u.topOffset:0;let e=document.querySelector("div.adsm-wallpaper"),n=e.getBoundingClientRect(),o=document.querySelector(".adnm-html-topscroll-frame-wrapper, #Topscroll, #ebbanner_topscroll"),r=document.querySelector(".adnm-html-topscroll-expand-frame-wrapper"),a=0,i=0,l=0;null!=o&&(a=o.getBoundingClientRect().height),null!=r&&(i=10,l=220);let s=window.scrollY,d=document.querySelector(".adsm-skin-banner-parent>iframe"),c=0!==u.topOffset?`calc(100vh - ${u.topOffset}px)`:"100vh";if(e.style.setProperty("height",""+c),null==t||0==t||t<=n.height)return e.style.setProperty("position","absolute","important"),void e.style.setProperty("top","0px","important");s>=t+(a-u.topOffset-80+l)?(e.style.setProperty("position","absolute"),e.style.setProperty("top",`calc(${t}px - ${u.topOffset}px - 80px + ${l}px + ${i}vh)`),d.style.setProperty("position","absolute","important"),d.style.setProperty("height",t+"px"),d.style.setProperty("top","0px")):(e.style.setProperty("position","fixed"),e.style.setProperty("top",`calc(${u.topOffset}px + ${i}vh)`),d.style.setProperty("position","fixed"),d.style.setProperty("height",n.height+"px"),d.style.setProperty("top",`calc(${u.topOffset}px + ${i}vh)`))}t.exports={initSideSkinBannerResizeGeneric:function(t,e=2){let n=null;if(!document.querySelector(window.adsm.certifications["adnami-canvas-desktop-fluidskin"].cert.content))return console.error("Could not find element to wrap around");if(a=document.createElement("style"),document.head.appendChild(a),!function(t,e){let o=null,a=t;for(;a.parent&&a.parent!==window;)a=a.parent;const i=document.querySelectorAll("iframe");for(let t=0;t{t.classList.remove(r)})},addParentClass:function(t,e,o=!1){if(!function(t,e){let r=null,a=t;for(;a.parent&&a.parent!==window;)a=a.parent;const i=document.querySelectorAll("iframe");for(let t=0;t{e.classList.contains(`${l}-${t}`)&&e.classList.remove(`${l}-${t}`)})}window.removeEventListener("resize",m),window.removeEventListener("scroll",c)},removeWallpaperOnScroll:function(){window.removeEventListener("load",p),window.removeEventListener("resize",p),window.removeEventListener("scroll",p)},loadSkinRealigner:function(){var t=document.querySelector(".adsm-wallpaper"),e=document.querySelector(".adsm-skin-banner-parent"),n=document.querySelector(".adnm-html-topscroll-frame-wrapper");const o=e.getBoundingClientRect().top;if(t&&!n){var r=o+window.pageYOffset;t.style.setProperty("position","absolute","important"),t.style.setProperty("top",r+"px","important")}if(t&&n){let e=n.getBoundingClientRect().bottom;skinOffset=Math.abs(e-o);r=skinOffset+e+window.pageYOffset;t.style.setProperty("position","absolute","important"),t.style.setProperty("top",r+"px","important")}},loadAlignSkinSpecial:function(){var t=document.querySelector(".adsm-skin-banner-parent").getBoundingClientRect().top,e=document.querySelector(".adsm-wallpaper").getBoundingClientRect().top,n=document.querySelector(".adsm-wallpaper");if(document.querySelector("html.adsm-skin")){n.style.top=t+"px",t=document.querySelector(".adsm-skin-banner-parent").getBoundingClientRect().top;var o=0;document.querySelector("html.adnm-topscroll")&&(o=document.querySelector(".adnm-html-topscroll-frame-wrapper").getBoundingClientRect().bottom,e=document.querySelector(".adsm-wallpaper").getBoundingClientRect().top,n.style.top=e-2*o+"px")}},adjustWallpaperOnScroll:function(t=null){u={topOffset:t},p()}}},function(t,e){const n="adnm-outstream-parent";function o(){document.querySelectorAll("."+n).forEach(t=>{t.classList.remove(n)})}const r="adnm-outstream-creative-parent";let a=null,i=null;t.exports={addParentClass:function(t,e,r=!1){if(!function(t,e){let o=null,a=t;for(;a.parent&&a.parent!==window;)a=a.parent;const i=document.querySelectorAll("iframe");for(let t=0;t{t.classList.remove(r)}),a&&a.parentElement.removeChild(a)}}},function(t,e){const n="adnm-native-parent";function o(){document.querySelectorAll("."+n).forEach(t=>{t.classList.remove(n)})}const r="adnm-native-creative-parent";let a=null,i=null;t.exports={addParentClass:function(t,e,r=!1){if(!function(t,e){let o=null,a=t;for(;a.parent&&a.parent!==window;)a=a.parent;const i=document.querySelectorAll("iframe");for(let t=0;t{t.classList.remove(r)}),a&&a.parentElement.removeChild(a)}}},function(t,e){const n="adnm-overlay-parent";function o(){document.querySelectorAll("."+n).forEach(t=>{t.classList.remove(n)})}const r="adnm-overlay-creative-parent";let a=null,i=null;t.exports={addParentClass:function(t,e,r=!1){if(!function(t,e){let o=null,a=t;for(;a.parent&&a.parent!==window;)a=a.parent;const i=document.querySelectorAll("iframe");for(let t=0;t{t.classList.remove(r)}),a&&a.parentElement.removeChild(a)},replaceOverlayLogo:function(t,e=null,n=null){const o=document.querySelector(t);if(o){const t=document.querySelector('[class*="adnm-fullpage-overlay"] .adnm-overlay-continue-text-wrapper img'),r=document.createElement("div");r.style.width=null!==e?e+"px":"auto",r.style.height=null!==n?n+"px":"auto",r.appendChild(o.cloneNode(!0)),t.parentNode.replaceChild(r,t)}}}},function(t,e,n){var o=n(14);const r={formatsLoaded:0};function a(){var t;r.formatsLoaded--,0===r.formatsLoaded&&((t=document.querySelector("html"))&&t.classList.contains("adnm-layout1")&&t.classList.remove("adnm-layout1"),t&&t.classList.contains("adnm-layout2")&&t.classList.remove("adnm-layout2"),t&&t.classList.contains("adnm-layout3")&&t.classList.remove("adnm-layout3"),t&&t.classList.contains("adnm-layout4")&&t.classList.remove("adnm-layout4"))}function i(){0===r.formatsLoaded&&function(){var t=window.location.href.indexOf("m3")>-1||window.location.href.indexOf("pcforalla")>-1||window.location.href.indexOf("smartworld")>-1;(o=document.querySelector("html"))&&1==t&&o.classList.add("adnm-layout1");var e=window.location.href.indexOf("computersweden")>-1||window.location.href.indexOf("eforum")>-1;o&&1==e&&o.classList.add("adnm-layout2");var n=window.location.href.indexOf("macworld")>-1;(o=document.querySelector("html"))&&1==n&&o.classList.add("adnm-layout3");var o,r=window.location.href.indexOf("go-vip")>-1||window.location.href.indexOf("nww")>-1;(o=document.querySelector("html"))&&1==r&&o.classList.add("adnm-layout4")}(),r.formatsLoaded++}t.exports={run:function(){o("ADSM_RMB_ADS_DESTROY",a),o("ADSM_RMB_ADS_INIT",i)}}},function(t,e){var n={};window.addEventListener("message",(function(t){if(t.data){var e=t.data.type,o=n[e];if(o)for(var r=0;r